#!/bin/bash
#Program
#This program pulls the codes from gitee then make it
#History:
#2019/10/02   Jackson    First release
cd ~
git config --global user.name "hdl"
git config --global user.email "984374450@qq.com"
mkdir project
cd ./project
git init
git clone git@gitee.com:huang_dong_lu/shixiqi_task1.git
cd ./shixiqi_task1
git pull git@gitee.com:huang_dong_lu/shixiqi_task1.git --allow-unrelated-histories
mkdir build
cd ./build
cmake ..
make >> log.txt
if [$? != 0];   then
	echo "make error"
else
	./shenfu
fi
